<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body>
<div class="layui-form timo-compile">
    <form th:action="@{/pPayPersonMch/add}">
        <input type="hidden" name="personMchId" th:if="${pPayPersonMch}" th:value="${pPayPersonMch.personMchId}"/>
        <div class="layui-form-item">
            <label class="layui-form-label">渠道编码</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="channelNo"  placeholder="请输入渠道编码" th:value="${pPayPersonMch?.channelNo}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">渠道名称</label>
            <div class="layui-input-inline">
                <div class="layui-input-inline">
                    <input type="radio" name="channelName" value="alipay" title="alipay" checked><div class="layui-unselect layui-form-radio layui-form-radioed"><i class="layui-anim layui-icon"></i><div>alipay</div></div>
                    <input type="radio" name="channelName" value="wechat" title="wechat" th:checked="${user?.channelName} eq 2"><div class="layui-unselect layui-form-radio"><i class="layui-anim layui-icon"></i><div>wechat</div></div>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">渠道个人账号</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="channelMchAccount"  placeholder="请输入渠道个人账号" th:value="${pPayPersonMch?.channelMchAccount}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">渠道用户ID</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="channelUserId"  placeholder="请输入渠道用户ID" th:value="${pPayPersonMch?.channelUserId}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">每日最大收款金额</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="maxAmount"  placeholder="请输入" th:value="${pPayPersonMch?.maxAmount}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">渠道状态</label>
            <div class="layui-input-inline">
                <div class="layui-input-inline">
                    <input type="radio" name="state" value="USABLE" title="使用中" checked><div class="layui-unselect layui-form-radio"><i class="layui-anim layui-icon"></i><div>使用中</div></div>
                    <input type="radio" name="state" value="DISABLE" title="不可用" th:checked="${pPayPersonMch?.state} eq 0"><div class="layui-unselect layui-form-radio layui-form-radioed"><i class="layui-anim layui-icon"></i><div>停止使用</div></div>
                </div>
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea placeholder="请输入内容" class="layui-textarea" name="remark">[[${pPayPersonMch?.remark}]]</textarea>
            </div>
        </div>
        <div class="layui-form-item timo-finally">
            <button class="layui-btn ajax-submit"><i class="fa fa-check-circle"></i> 保存</button>
            <button class="layui-btn btn-secondary close-popup"><i class="fa fa-times-circle"></i> 关闭</button>
        </div>
    </form>
</div>
<script th:replace="/common/template :: script"></script>
</body>
</html>
